From Instagram "You can use up to 30 tags on a post. If you include more than 30 tags on a single photo/video, your comment won't post." 3-7 is probably a good number to stick with.

As 30 includes # in the caption and the comments section both. Instagram doesn't allow more than 30# per post. Some of the hashtags are filtered to prevent spamming.