Changed counting function, removed mapchange params

Updated to v 1.0.2