Php Count Items In Array Javascript Length Validation Of Instruments