added count for pins