Count number of posts of current month

This is because the paramenter posts_per_page of the get_posts() function defaults to 5. Set it to -1 in your $args.