Suggestion: count is a property of many objects in vba,
you might want to alter your choice for the variable name to cnt or aCount etc.
for example
this is frequently used to find the last used cell in column Alr = Cells(Rows.Count, "A").End(xlUp).Row
count is a property of rows (and columns, and others)
hope this helps you on your path, and happy coding
-mark